package com.shop.auth.dto.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JwtResponse {
    private String token;  // JWT令牌
    private String type = "Bearer";  // 令牌类型
    private Long id;  // 用户ID
    private String username;  // 用户名
    private String email;  // 邮箱

    // 构造函数，简化创建过程
    public JwtResponse(String accessToken, Long id, String username, String email) {
        this.token = accessToken;
        this.id = id;
        this.username = username;
        this.email = email;
    }
}
